<?php
$con = mysqli_connect("localhost","softbos","developer","Logins");
mysqli_set_charset($con, "utf8");
if (mysqli_connect_errno()) {
  echo "Failed to connect to MySQL: " . mysqli_connect_error();
}

$result = mysqli_query($con,"SELECT Id, UserId, CompanyId, Salary, Name, SecondName FROM Customer");
$output = array();
while($row = mysqli_fetch_array($result)) {
	$output[] = array($row['Id'],$row['UserId'],$row['CompanyId'],$row['Salary'],stripslashes($row['Name']),stripslashes($row['SecondName']));
}
echo json_encode($output);

mysqli_close($con);
?>
